<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="龙蛙商城">
    <meta name="description" content="龙蛙商城">

    <link rel="shortcut icon" href="/favicon.ico">
    <link href="/web/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/web/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/web/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="/web/css/animate.min.css" rel="stylesheet">
    <link href="/web/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/web/css/plugins/toastr/toastr.min.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox">
                <div class="ibox-content">
                    <form id="ajaxform" class="form-horizontal" role="form">
                        <input type="hidden" id="userId" th:value="${user.id}">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户昵称：</label>
                            <div class="col-sm-10">
                                <span type="text" name="nickname" th:text="${user.nickname}" class="form-control"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">角色名称：</label>
                            <div class="col-sm-10" th:each="role : ${allroles}">
                                <div th:if="${role.rstatus eq 0}" th:remove="tag">
                                    <input type="checkbox" name="roleId" th:value="${role.id}" class="form-control" >
                                    <span th:text="${role.name}"></span>
                                </div>
                                <div th:if="${role.rstatus eq 1}" th:remove="tag">
                                    <input type="checkbox" name="roleId" th:value="${role.id}" class="form-control" checked="checked">
                                    <span th:text="${role.name}"></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3"></div>
                            <button id="submitForSave" class="btn btn-primary col-sm-1">保存</button>
                            <div class="col-sm-2"></div>
                            <button type="reset" class="btn btn-primary col-sm-1">重置</button>
                            <div class="col-sm-2"></div>
                            <button id="buttonGoback" class="btn btn-primary col-sm-1">返回</button>
                            <div class="col-sm-3"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/web/js/jquery.min.js?v=2.1.4"></script>
<script src="/web/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/web/js/content.min.js?v=1.0.0"></script>
<script src="/web/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="/web/js/plugins/validate/jquery.validate.min.js"></script>
<script src="/web/js/plugins/validate/messages_zh.min.js"></script>
<script src="/web/js/plugins/toastr/toastr.min.js"></script>
<script src="/web/js/self/user_role_update.js?v=1.0"></script>
</body>
</html>
